cmake_minimum_required(VERSION 2.6)
project(BarterServer)
add_subdirectory(src)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_subdirectory(tests)
endif(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(EXECUTABLE_OUTPUT_PATH ${BarterServer_BINARY_DIR}/../build FILEPATH)
if(WIN32)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE")
endif(WIN32)